package org.example.fegin;

import org.example.pojo.Request.UserRuncodeCase;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "JudgeService")
@Component
public interface JudgeFegin {

    @PostMapping("/judge/runCode")
    List<UserRuncodeCase> RunCodeJudge(@RequestParam("message") String message, @RequestParam("UserId") String UserId);

}
